package com.orange.handler.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthProofService;
import com.orange.modules.dao.AuthProofRepository;
import com.orange.modules.entity.AuthProof;

@Service
public class AuthProofServiceImpl implements AuthProofService{

	@Autowired
	private AuthProofRepository authProofRepository;
	
	@Override
	public void insertAuthProof(List<AuthProof> ap) throws SQLException {
		authProofRepository.insertAuthProof(ap);
		
	}
	/**
	 * 查询所有的佐证
	 */
	@Override
	public List<AuthProof> queryAllAuthProof(String itemId,String schoolId,String subject) throws SQLException {
		List<AuthProof> list = authProofRepository.queryAllAuthProof(itemId,schoolId,subject);
		return list;
	}
	/* (non-Javadoc)
	 * @see com.orange.handler.AuthProofService#deleteAuthProofInfo(java.lang.String, java.lang.String)
	 */
	@Override
	public void deleteAuthProofInfo(String itemId ,String schoolId, String subject)
			throws SQLException {
		authProofRepository.deleteAuthProofInfo(itemId,schoolId, subject);
		
	}

}
